package com.leyou.item.api;

import com.leyou.item.pojo.SpecGroup;
import com.leyou.item.pojo.SpecParam;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Date 2018/12/22  18:21
 * @Author JIE
 */
public interface SpecificationApi {

    @GetMapping("/spec/params")
     List<SpecParam> queryParamList(@RequestParam(value = "gid", required = false) Long gid
            , @RequestParam(value = "cid", required = false) Long cid
            , @RequestParam(value = "searching", required = false) Boolean searching);

     @GetMapping("/spec/group")
    List<SpecGroup> queryGroupByCid(@RequestParam("cid")Long cid);
}
